﻿@model IEnumerable<AnYeCun.Entity.ShareCode.ShareCodeEntity>

@{
    ViewBag.Title = "类别管理";
}

<p>
    @Html.ActionLink("增加类别", "Add") &nbsp;|&nbsp; @Html.ActionLink("增加大类别", "Add","ShareCodeClass")
</p>

<table>
    <tr>
        <th></th>
        <th>
            CodeID
        </th>
        <th>
            ClassID
        </th>
        <th>
            Name
        </th>
        <th>
            NameEn
        </th>
        <th>
            ParentId
        </th>
        <th>
            CreateDate
        </th>
        <th>
            LastUpdateDate
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
        <td>
            @item.CodeID
        </td>
        <td>
            @item.ClassID
        </td>
        <td>
            @item.Name
        </td>
        <td>
            @item.NameEn
        </td>
        <td>
            @item.ParentId
        </td>
        <td>
            @String.Format("{0:g}", item.CreateDate)
        </td>
        <td>
            @String.Format("{0:g}", item.LastUpdateDate)
        </td>
    </tr>
}

</table>

